package com.evil.kingdom.pojo.entity.action;

/**
 * 坐标
 *
 * @author liyang
 * @date 2024-05-17 16:38
 */
public interface Position {

    /**
     * X坐标
     *
     * @return Double
     */
    Double getX();

    /**
     * Y坐标
     *
     * @return Double
     */
    Double getY();

    default boolean checkPosition(double d) {
        return d >= 0 && d <= 100;
    }

    boolean equals(Object o);

    int hashCode();
}
